package com.工厂模式.methods;

public class Client {
    public static void main(String[] args) {
        BJFactory bjFactory = new BJFactory();
        PizzaAbstract nl = bjFactory.getPizza("nl");
        nl.print();

        PizzaAbstract hj = bjFactory.getPizza("hj");
        hj.print();


        LDFactory ldFactory = new LDFactory();
        PizzaAbstract nl1 = ldFactory.getPizza("nl");
        nl1.print();

        PizzaAbstract hj1 = ldFactory.getPizza("hj");
        hj1.print();
    }
}
